-
Notifications
You must be signed in to change notification settings - Fork 804
[SYCL][UR] Support sycl_ext_oneapi_clock #20070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@intel/unified-runtime-reviewers-level-zero hi guys, could you please help to figure out how to check if this feature supported by a L0-device? IGC supports it already, but I don't know if there are any restrictions from the L0 side. Should I just somehow check the version of IGC? |
I've updated the description, please check if that was accurate. |
@intel/unified-runtime-reviewers @intel/unified-runtime-reviewers-opencl take a look please |
I don't believe there's an API in L0 to check this. At least I'm not aware of one. @nrspruit do you know? Checking IGC/driver version should be the last resort, but we already have hacks like that in place: llvm/unified-runtime/source/adapters/level_zero/platform.hpp Lines 91 to 93 in bb6e44c
So, for now, if IGC supports this unconditionally on all supported platforms, you could simply return true on driver versions that contain the required IGC. |
@intel/llvm-gatekeepers please consider merging |
@intel/llvm-gatekeepers yep, this one is ready, I will add the L0-part with a separate patch. Please merge. |
Follow-up to intel#20070
Spec: https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/proposed/sycl_ext_oneapi_clock.asciidoc
The test for this exists, but isn't being tested due to issues down the stack, see #20100.